Skip to content

fix: suppress IL2007 annotations and enable AVIF encoding via libsvtav1enc2 - #318

Merged
winnerspiros merged 1 commit into
masterfrom
copilot/fix-android-apk-build-issues
May 8, 2026
Merged

fix: suppress IL2007 annotations and enable AVIF encoding via libsvtav1enc2#318
winnerspiros merged 1 commit into
masterfrom
copilot/fix-android-apk-build-issues

Conversation

Copilot AI commented May 8, 2026

Copy link
Copy Markdown

Two build-time noise items in the Android APK workflow: spurious IL2007 annotations from ILLink's descriptor-validation phase, and a "AVIF skipped, falling back to WebP" notice because libsvtav1enc2 was absent on the runner.

Changes

  • osu.Android.props — Add IL2007 to <NoWarn>.
    SuppressTrimAnalysisWarnings=true already suppresses IL2xxx during the ILLink trim pass, but IL2007 fires earlier during Linker.xml descriptor validation (before the link set is assembled), so it needs an explicit <NoWarn> entry to avoid landing as a build annotation pointing at Linker.xml#L89/#L90.

  • release.yml — Install libsvtav1enc2 alongside ffmpeg.
    osu-resources-config.json has jpeg_avif_enabled: true to encode upstream JPEG textures to AVIF. Ubuntu 24.04's apt ffmpeg is compiled with --enable-libsvtav1 but requires libsvtav1enc2 to be installed at runtime. Without it the optimizer silently fell back to WebP for every JPEG in ppy/osu-resources.

…v1enc2

Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/93be82ca-7d4f-4674-b76a-0758027c1a5f

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
@gitar-bot

gitar-bot Bot commented May 8, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@winnerspiros
winnerspiros marked this pull request as ready for review May 8, 2026 22:46
Copilot AI review requested due to automatic review settings May 8, 2026 22:46
@winnerspiros
winnerspiros merged commit ec1f7fd into master May 8, 2026
24 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces build-time noise in the Android APK release workflow by suppressing a benign ILLink warning and ensuring AVIF encoding dependencies are present on the GitHub Actions runner.

Changes:

  • Suppress IL2007 in the Android build by adding it to NoWarn in osu.Android.props.
  • Install libsvtav1enc2 alongside ffmpeg in the release workflow to allow AVIF encoding rather than falling back to WebP.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
osu.Android.props Adds IL2007 to NoWarn with rationale to prevent benign linker descriptor-validation warnings from producing build annotations.
.github/workflows/release.yml Installs libsvtav1enc2 with ffmpeg so the resource optimizer can encode AVIF as configured.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +227 to 228
sudo apt-get install -y ffmpeg libsvtav1enc2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants